<div class="content">
<?php 

foreach ($blogposts as $blogpost):

echo $blogpost['Blogpost']['title'];
echo '<br />';
echo $blogpost['Blogpost']['body'];
echo '<br />';
echo $blogpost['Blogpost']['author'];
echo '<br />';

endforeach;

if ($user['group_id']) {
	echo $html->link('Add post', array('action'=>'/add'));	
}

?>
</div>